package com.sohh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @description: some desc
 * @author: ruoan
 * @date: 2021/2/5 12:33
 */
@SpringBootApplication
@MapperScan("com.sohh.mapper")
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true)   //开启securedEnabled后，@Secured等注解生效;开启prePostEnabled后，@PreAuthorize注解生效
public class MyApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class, args);

    }
}
